package com.gengealogy.net.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.gengealogy.net.dao.ClanDao;
import com.gengealogy.net.po.Clan;
import com.gengealogy.net.service.ClanService;



@Service("clanService")
@Transactional
public class ClanServiceImpl implements ClanService{

	// 注入UserDao
		@Autowired
		private ClanDao clanDao;
		public ClanDao getClanDao() {
			return clanDao;
		}

		public void setClanDao(ClanDao clanDao) {
			this.clanDao = clanDao;
		}

		@Override
		public Clan findClan(int clan_create_id) {
			// TODO Auto-generated method stub
			return clanDao.findClan(clan_create_id);
		}

		@Override
		public int addClan(Clan clan) {
			// TODO Auto-generated method stub
			return clanDao.addClan(clan);
		}

		@Override
		public Clan getClanById(int clan_id) {
			// TODO Auto-generated method stub
			return clanDao.getClanById(clan_id);
		}

		@Override
		public int updateClan(Clan clan) {
			// TODO Auto-generated method stub
			return clanDao.updateClan(clan);
		}

		@Override
		public int deleteClan(int clan_id) {
			// TODO Auto-generated method stub
			return clanDao.deleteClan(clan_id);
		}


}
